package com.xiaohu.mayi_huiyuan.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {

    public static SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
   static SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyy-MM-dd");
    static SimpleDateFormat simpleDateFormat2 = new SimpleDateFormat("HH-mm-ss");

    public static String formatDate(Date date) {
        return simpleDateFormat.format(date);
    }

    public static String geshihua(Date date) {
        StringBuilder builder = new StringBuilder();
        builder.append(simpleDateFormat1.format(date));
        builder.append("@");
        builder.append(simpleDateFormat2.format(date));
        return builder.toString();
    }


}
